package Extends;

import java.awt.Color;

public class PetTest {

	public static void main(String[] args) {
		Pet pet = new Petpig("鼻涕猪", "公", 1, 1, "#", Color.blue);
		pet.moveForMaster();
		System.out.println(pet.getName() + "吃" + pet.eatFood(pet));
		

		Petcat petcat = new Petcat("吉祥猫", "公", 2, 2, "##", "冬款");
		System.out.println(petcat.getName() + "穿着" + petcat.getCoatstyle() + "飞行");
		System.out.println(petcat.getName() + "吃" + petcat.eatFood(petcat));

		System.out.println(pet.toString());
		System.out.println(petcat.toString());
	}

}
